﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Model;
using DAL;

namespace BLL
{
  public  class teacherinfoBLL
    {
        //列表展示
        public static DataTable getall(string tname)
        {
            return teacherinfoDAL.getall(tname);
        }

        //查询
        public static teacher getone(int tno)
        {
            return teacherinfoDAL.getone(tno);
        }
        //删除
        public static int Delete(int tno)
        {
            return teacherinfoDAL.Delete(tno);
        }

        //添加
        public static int Add(teacher Teacher)
        {
            return teacherinfoDAL.Add(Teacher);
        }

        //修改
        public static int update(string password, string name, string sex, int tno)
        {
            return teacherinfoDAL.update(password, name, sex, tno);
        }

        public static teacher roomID(int tno)
        {
            return teacherinfoDAL.roomID(tno);
        }
    }
}
